<style>
#evidencijaBrowse table tr td.napomena{
	background:url(gui/icons/nextdate.gif) no-repeat 98% center;
}
#evidencijaBrowse table tr td.napomena div{
	width:200px;
	height:14px;
	overflow:hidden;
}
#evidencijaBrowse table tr td.napomena:hover div{
	height:100px;
	position:absolute;
	border:1px solid #000;
	background:#fff;
	overflow:auto;
	padding:5px;
}
</style>
<div id="evidencijaBrowse">
	<h1>Pregled dolazaka/odlazaka</h1>
	<form class="area" action="javascript:void(0)" onsubmit="submitForm(this,'evidencija.php','POST','setContent')">
		<input type="hidden" name="a" value="browse" />
		<label class="left" for="filter_date">Datum:</label><input type="text" style="width:60px;" maxlength="10" name="filter_date" id="filter_date" value="{{$filter_date}}" />
		<input type="button" class="datePicker" onclick="displayDatePicker('filter_date',this)" />
		
		<label class="left" style="width:80px;" for="filter_opravdanje">Opravdanje:</label>
		<select name="filter_opravdanje" id="filter_opravdanje">
			<option value="-1">---</option>
			{{%loop start opravdanje_id}}
			<option value="{{$opravdanje_id}}" {{$opravdanje_selected}}>{{$opravdanje_name}}</option>
			{{%loop end}}
		</select>
		
		<label class="left" for="filter_radnik" style="width:60px;">Radnik:</label>
		<select name="filter_radnik" id="filter_radnik">
			<option value="-1">---</option>
			{{%loop start radnik_id}}
			<option value="{{$radnik_id}}" {{$radnik_selected}}>{{$radnik_ime}}&nbsp;{{$radnik_prezime}}</option>
			{{%loop end}}
		</select>
		<label class="left" for="filter_gruprad">Grupa:</label>
		<select name="filter_gruprad" id="filter_gruprad">
			<option value="-1">---</option>
			{{%loop start group_id}}
			<option value="{{$group_id}}" {{$group_selected}}>{{$group_name}}</option>
			{{%loop end}}
		</select>
		<input type="submit" id="submitBtn" value="filter" />
	</form>
	<br clear="all" />
	<div class="area" style="margin-top:2px">
		{{$comment_start}}
		<table>
			<tr class="head" align="center">
				<td colspan="2">radnik</td>
				<td>dan</td>
				<td>došao</td>
				<td>otišao</td>
				<td>opravdano</td>
				<td>napomena</td>
			</tr>
			{{%loop start eRadid}}
			<tr valign="top">
				<td align="right" ondblclick="deleteEvidencijaDolazaka('{{$eID}}')">{{$eRadid}}</td>
				<td>{{$eRadIme}}&nbsp;{{$eRadPrezime}}</td>
				<td align="right">{{$eRadDay}}</td>
				<td>{{$eRadIn}}</td>
				<td>{{$eRadOut}}</td>
				<td align="center">{{$eRadOpravdano}}</td>
				<td width="200" class="{{$eRadNapomenaClass}}"><div>{{$eRadNapomena}}</div></td>
			</tr>
			{{%loop end}}
		</table>
		{{$comment_end}}
	</div>
</div>